package com.hillky.emos.wx.mapper;

import com.hillky.emos.wx.domain.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
* @author Hillky
* @description 针对表【tb_user(用户表)】的数据库操作Mapper
* @createDate 2023-01-29 10:56:24
* @Entity com.hillky.emos.wx.domain.TbUser
*/
@Mapper
public interface TbUserMapper extends BaseMapper<TbUser> {

    public boolean haveRootUser();

    public Set<String> searchUserPermissions(Integer userId);

    public HashMap<String,String> searchNameAndDept(Integer userId);

    HashMap searchUserSummary(int userId);

    ArrayList<HashMap> searchUserGroupByDept(String keyword);

    ArrayList<HashMap> searchMembers(List param);
}




